import request from '@/utils/request'

// 获取会员列表
export function getMembers(queryParams) {
  return request({
    url: '/getMember',
    method: 'get',
    params:queryParams
  })
}

// 获取待处理的消息通知列表
export function getNotepads(senderId) {
  let data = {
    senderId,
  }
  return request({
    url: '/getNotepad',
    method: 'post',
    data: data
  })
}

// 接受/拒绝充值
export function handleCharge(notepadId,status) {
  let data = {
    notepadId,
    status,
  }
  return request({
    url: '/handleCharge',
    method: 'post',
    data: data
  })
}

// 重置密码
export function resetPassword(userId) {
  let data = {
    userId,
  }
  return request({
    url: '/resetPassword',
    method: 'post',
    data: data
  })
}

// 搜索功能
export function getMemberSearch(params) {
  return request({
    url: '/getSearch',
    method: 'get',
    params:params
  })
}

// 获取需要发货的订单
export function getFahuo() {
  return request({
    url: 'getFahuo',
    method: 'post'
  })
}

// 发货请求
export function sendHuo(orderNum) {
  let data = {
    orderNum,
  }
  return request({
    url: '/sendHuo',
    method: 'post',
    data: data
  })
}
